package com.scm.entity;

/**
 * @author CHL
 * @ClassName: UserEntity
 * @Description: TODO
 * @date 2022/3/8 15:11
 * @Version 1.0
 */
public class UserEntity
{
    private String id;
    private String name;
    private String sex;
    private String address;
    private String zip;

    public void setId(String id)
    {
        this.id = id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public void setAddress(String address)
    {
        this.address = address;
    }

    public void setZip(String zip)
    {
        this.zip = zip;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof UserEntity)) {
            return false;
        }
        UserEntity other = (UserEntity)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$name = getName();Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
            return false;
        }
        Object this$sex = getSex();Object other$sex = other.getSex();
        if (this$sex == null ? other$sex != null : !this$sex.equals(other$sex)) {
            return false;
        }
        Object this$address = getAddress();Object other$address = other.getAddress();
        if (this$address == null ? other$address != null : !this$address.equals(other$address)) {
            return false;
        }
        Object this$zip = getZip();Object other$zip = other.getZip();return this$zip == null ? other$zip == null : this$zip.equals(other$zip);
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof UserEntity;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $name = getName();result = result * 59 + ($name == null ? 43 : $name.hashCode());Object $sex = getSex();result = result * 59 + ($sex == null ? 43 : $sex.hashCode());Object $address = getAddress();result = result * 59 + ($address == null ? 43 : $address.hashCode());Object $zip = getZip();result = result * 59 + ($zip == null ? 43 : $zip.hashCode());return result;
    }

    public String toString()
    {
        return "UserEntity(id=" + getId() + ", name=" + getName() + ", sex=" + getSex() + ", address=" + getAddress() + ", zip=" + getZip() + ")";
    }

    public String getId()
    {
        return this.id;
    }

    public String getName()
    {
        return this.name;
    }

    public String getSex()
    {
        return this.sex;
    }

    public String getAddress()
    {
        return this.address;
    }

    public String getZip()
    {
        return this.zip;
    }
}

